package com.kate.mall.product.init;

import com.kate.mall.product.pool.GoodsSpecificationThreadPool;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @author 新梦想.陈超
 * @version 2021.2
 * @Description: {TODO}
 * @date 2022/7/18 上午10:04
 */
@Component
@Slf4j
public class ApplicationInit implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
       log.info("应用启动。。开始初始化....");
        GoodsSpecificationThreadPool threadPool = new GoodsSpecificationThreadPool();
        threadPool.init();
    }
}
